<!DOCTYPE html><html><head><title>惠购接口文档</title><meta charset='utf-8'><link href='https://dn-maxiang.qbox.me/res-min/themes/marxico.css' rel='stylesheet'><style>
.note-content  {font-family: 'Helvetica Neue', Arial, 'Hiragino Sans GB', STHeiti, 'Microsoft YaHei', 'WenQuanYi Micro Hei', SimSun, Song, sans-serif;}

</style></head><body><div id='preview-contents' class='note-content'>
                        
                    



<h1 id="惠购接口文档">惠购接口文档</h1>

<div><div class="toc"><div class="toc">
<ul>
<li><a href="#惠购接口文档">惠购接口文档</a><ul>
<li><ul>
<li><ul>
<li><a href="#1获取验证码">1.获取验证码</a></li>
<li><a href="#2注册">2.注册</a></li>
<li><a href="#3登录">3.登录</a></li>
<li><a href="#4第三方登录">4.第三方登录</a></li>
<li><a href="#5绑定手机号">5.绑定手机号</a></li>
<li><a href="#5忘记密码">5.忘记密码</a></li>
<li><a href="#6用户信息">6.用户信息</a></li>
<li><a href="#7首页轮播图">7.首页轮播图</a></li>
<li><a href="#8消息列表">8.消息列表</a></li>
<li><a href="#9消息详情">9.消息详情</a></li>
<li><a href="#10限时商品列表正价商品列表">10.限时商品列表,正价商品列表</a></li>
<li><a href="#11-商品详情">11.  商品详情</a></li>
<li><a href="#12获取省份列表">12.获取省份列表</a></li>
<li><a href="#13-获取对应省份的城市列表">13. 获取对应省份的城市列表</a></li>
<li><a href="#14获取对应城市的区县列表">14.获取对应城市的区县列表</a></li>
<li><a href="#13添加收货地址">13.添加收货地址</a></li>
<li><a href="#14编辑用户收货地址">14.编辑用户收货地址</a></li>
<li><a href="#15-收货地址列表">15. 收货地址列表</a></li>
<li><a href="#16获取用户收货地址详情">16.获取用户收货地址详情</a></li>
<li><a href="#17删除收货地址">17.删除收货地址</a></li>
<li><a href="#18提交订单">18.提交订单</a></li>
<li><a href="#19订单列表">19.订单列表</a></li>
<li><a href="#20获取七牛token">20.获取七牛token</a></li>
<li><a href="#21更新头像">21.更新头像</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
</div>

<p><strong>①接口域名</strong>：<a href="http://huigo.jzbwlkj.com" target="_blank">http://huigo.jzbwlkj.com</a></p>

<h4 id="1获取验证码">1.获取验证码</h4>

<pre class="prettyprint hljs-dark"><code class="hljs crmsh"><div class="hljs-line">  url   api/public/verify
</div><div class="hljs-line">  参数
</div><div class="hljs-line">  <span class="hljs-keyword">user</span>  <span class="hljs-title">手机号
</span></div><div class="hljs-line">  type    register,forgotten
</div><div class="hljs-line">  返回
</div><div class="hljs-line">  {<span class="hljs-string">"code"</span>:<span class="hljs-number">1</span>,<span class="hljs-string">"message"</span>:<span class="hljs-string">"\u64cd\u4f5c\u6210\u529f"</span>,<span class="hljs-string">"data"</span>:{<span class="hljs-string">"verify"</span>:<span class="hljs-string">"254441"</span>}}
</div></code></pre>



<h4 id="2注册">2.注册</h4>

<pre class="prettyprint hljs-dark"><code class="hljs crmsh"><div class="hljs-line"> url  api/user/register
</div><div class="hljs-line">     参数
</div><div class="hljs-line">        <span class="hljs-keyword">user</span>  <span class="hljs-title">手机号
</span></div><div class="hljs-line">        pwd   密码
</div><div class="hljs-line">        repwd  重复密码
</div><div class="hljs-line">        verify   验证码
</div><div class="hljs-line">    返回
</div><div class="hljs-line">    {
</div><div class="hljs-line">      <span class="hljs-string">"code"</span>: <span class="hljs-number">1</span>,
</div><div class="hljs-line">      <span class="hljs-string">"message"</span>: <span class="hljs-string">"操作成功"</span>
</div><div class="hljs-line">    }
</div></code></pre>



<h4 id="3登录">3.登录</h4>

<pre class="prettyprint hljs-dark"><code class="hljs crmsh"><div class="hljs-line"> url  api/user/login
</div><div class="hljs-line"> 参数
</div><div class="hljs-line"> <span class="hljs-keyword">user</span> <span class="hljs-title">手机号
</span></div><div class="hljs-line"> pwd   密码
</div><div class="hljs-line"> driver   ios，android
</div><div class="hljs-line"> 返回
</div><div class="hljs-line"> {
</div><div class="hljs-line">      <span class="hljs-string">"code"</span>: <span class="hljs-number">1</span>,
</div><div class="hljs-line">      <span class="hljs-string">"message"</span>: <span class="hljs-string">"操作成功"</span>,
</div><div class="hljs-line">      <span class="hljs-string">"data"</span>: {
</div><div class="hljs-line">        <span class="hljs-string">"token"</span>: <span class="hljs-string">"59dcb8b9a46e601b97bfc66908b0a447"</span>
</div><div class="hljs-line">      }
</div><div class="hljs-line">}
</div></code></pre>



<h4 id="4第三方登录">4.第三方登录</h4>

<pre class="prettyprint hljs-dark"><code class="hljs ada"><div class="hljs-line">    url  api/user/userLoginByThird
</div><div class="hljs-line"> 参数
</div><div class="hljs-line"> openid
</div><div class="hljs-line"> <span class="hljs-keyword">type</span>   <span class="hljs-type">wx，qq
</span></div><div class="hljs-line"> nicename
</div><div class="hljs-line"> avatar
</div><div class="hljs-line"> 返回
</div><div class="hljs-line"> {
</div><div class="hljs-line">      <span class="hljs-string">"code"</span>: <span class="hljs-number">1</span>,
</div><div class="hljs-line">      <span class="hljs-string">"message"</span>: <span class="hljs-string">"操作成功"</span>,
</div><div class="hljs-line">      <span class="hljs-string">"data"</span>: {
</div><div class="hljs-line">        <span class="hljs-string">"token"</span>: <span class="hljs-string">"59dcb8b9a46e601b97bfc66908b0a447"</span>
</div><div class="hljs-line">      }
</div><div class="hljs-line">} 
</div></code></pre>



<h4 id="5绑定手机号">5.绑定手机号</h4>

<pre class="prettyprint hljs-dark"><code class="hljs armasm"><div class="hljs-line">  url  api/user/<span class="hljs-keyword">bindMobile
</span></div><div class="hljs-line">  参数
</div><div class="hljs-line">  mobile
</div><div class="hljs-line">  verify
</div><div class="hljs-line">  openid
</div><div class="hljs-line">  返回
</div><div class="hljs-line">  {
</div><div class="hljs-line">      <span class="hljs-string">"code"</span>: <span class="hljs-number">1</span>,
</div><div class="hljs-line">      <span class="hljs-string">"message"</span>: <span class="hljs-string">"操作成功"</span>
</div><div class="hljs-line"> }
</div></code></pre>



<h4 id="5忘记密码">5.忘记密码</h4>

<pre class="prettyprint hljs-dark"><code class="hljs crmsh"><div class="hljs-line">    url  api/user/resetPassword
</div><div class="hljs-line">    参数
</div><div class="hljs-line">    <span class="hljs-keyword">user</span>   <span class="hljs-title">手机号
</span></div><div class="hljs-line">    verify  验证码
</div><div class="hljs-line">    pwd   密码
</div><div class="hljs-line">    repwd  重复密码
</div><div class="hljs-line">    返回
</div><div class="hljs-line">    {
</div><div class="hljs-line">      <span class="hljs-string">"code"</span>: <span class="hljs-number">1</span>,
</div><div class="hljs-line">      <span class="hljs-string">"message"</span>: <span class="hljs-string">"操作成功"</span>
</div><div class="hljs-line">    }
</div></code></pre>



<h4 id="6用户信息">6.用户信息</h4>

<pre class="prettyprint hljs-dark"><code class="hljs xquery"><div class="hljs-line">      url api/user/BaseInfo
</div><div class="hljs-line">      参数
</div><div class="hljs-line">      token
</div><div class="hljs-line">     返回
</div><div class="hljs-line">       {
</div><div class="hljs-line">      <span class="hljs-string">"code"</span>: <span class="hljs-number">1</span>,
</div><div class="hljs-line">      <span class="hljs-string">"message"</span>: <span class="hljs-string">"操作成功"</span>,
</div><div class="hljs-line">      <span class="hljs-string">"data"</span>: {
</div><div class="hljs-line">        <span class="hljs-string">"uid"</span>: <span class="hljs-string">"149"</span>,
</div><div class="hljs-line">        <span class="hljs-string">"nickname"</span>: <span class="hljs-string">"冰1"</span>,
</div><div class="hljs-line">        <span class="hljs-string">"coin"</span>: <span class="hljs-string">"1000"</span>,
</div><div class="hljs-line">        <span class="hljs-string">"avatar"</span>: <span class="hljs-string">"1038"</span>,
</div><div class="hljs-line">        <span class="hljs-string">"avatar_path"</span>: <span class="hljs-string">"/Uploads/Picture/2018-03-15/5aaa28452ef90.jpg"</span>,
</div><div class="hljs-line">        <span class="hljs-string">"username"</span>: <span class="hljs-string">"13639447983"</span>
</div><div class="hljs-line">      }
</div><div class="hljs-line">    }
</div></code></pre>



<h4 id="7首页轮播图">7.首页轮播图</h4>

<pre class="prettyprint hljs-dark"><code class="hljs elm"><div class="hljs-line">  url  api/ad/getList
</div><div class="hljs-line">  返回
</div><div class="hljs-line">     {
</div><div class="hljs-line">      <span class="hljs-string">"code"</span>: <span class="hljs-number">1</span>,
</div><div class="hljs-line">      <span class="hljs-string">"message"</span>: <span class="hljs-string">"操作成功"</span>,
</div><div class="hljs-line">      <span class="hljs-string">"data"</span>: [
</div><div class="hljs-line">        {
</div><div class="hljs-line">          <span class="hljs-string">"id"</span>: <span class="hljs-string">"1"</span>,
</div><div class="hljs-line">          <span class="hljs-string">"type"</span>: <span class="hljs-string">"1"</span>,  <span class="hljs-keyword">type</span> 1 外链(跳转浏览器)  0 内联（显示content）
</div><div class="hljs-line">          <span class="hljs-string">"url"</span>: <span class="hljs-string">"https://live.9158.com/Room/GetHotLive_v2?type=1&amp;useridx=61695164&amp;page=1&amp;isNewapp=1&amp;isEnglish=0"</span>,
</div><div class="hljs-line">          <span class="hljs-string">"content"</span>: <span class="hljs-string">"&lt;p&gt;123131&lt;br/&gt;&lt;/p&gt;"</span>,
</div><div class="hljs-line">          <span class="hljs-string">"image"</span>: <span class="hljs-string">"http://www.huigo.com:80/Uploads/Picture/2018-03-15/5aaa28452ef90.jpg"</span>
</div><div class="hljs-line">        }
</div><div class="hljs-line">      ]
</div><div class="hljs-line">    }
</div></code></pre>



<h4 id="8消息列表">8.消息列表</h4>

<pre class="prettyprint hljs-dark"><code class="hljs protobuf"><div class="hljs-line">      url  api/<span class="hljs-class"><span class="hljs-keyword">message</span>/<span class="hljs-title">messageList</span>
</span></div><div class="hljs-line">      参数
</div><div class="hljs-line">      token
</div><div class="hljs-line">      返回
</div><div class="hljs-line">      {
</div><div class="hljs-line">      <span class="hljs-string">"code"</span>: <span class="hljs-number">1</span>,
</div><div class="hljs-line">      <span class="hljs-string">"message"</span>: <span class="hljs-string">"操作成功"</span>,
</div><div class="hljs-line">      <span class="hljs-string">"data"</span>: {
</div><div class="hljs-line">        <span class="hljs-string">"result"</span>: [
</div><div class="hljs-line">          {
</div><div class="hljs-line">            <span class="hljs-string">"id"</span>: <span class="hljs-string">"4"</span>,
</div><div class="hljs-line">            <span class="hljs-string">"title"</span>: <span class="hljs-string">"新消息"</span>,
</div><div class="hljs-line">            <span class="hljs-string">"message"</span>: <span class="hljs-string">"&lt;h2&gt;新增消息&lt;/h2&gt;&lt;h2&gt;新增消息&lt;/h2&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;"</span>,
</div><div class="hljs-line">            <span class="hljs-string">"create_time"</span>: <span class="hljs-string">"2018-03-21 08:43:56"</span>
</div><div class="hljs-line">          }
</div><div class="hljs-line">        ],
</div><div class="hljs-line">        <span class="hljs-string">"count"</span>: <span class="hljs-string">"2"</span>
</div><div class="hljs-line">      }
</div><div class="hljs-line">    }
</div></code></pre>



<h4 id="9消息详情">9.消息详情</h4>

<pre class="prettyprint hljs-dark"><code class="hljs protobuf"><div class="hljs-line">   url  api/<span class="hljs-class"><span class="hljs-keyword">message</span>/<span class="hljs-title">messageList</span>
</span></div><div class="hljs-line">      参数
</div><div class="hljs-line">      token
</div><div class="hljs-line">      id
</div><div class="hljs-line">      返回
</div><div class="hljs-line">      {
</div><div class="hljs-line">      <span class="hljs-string">"code"</span>: <span class="hljs-number">1</span>,
</div><div class="hljs-line">      <span class="hljs-string">"message"</span>: <span class="hljs-string">"操作成功"</span>,
</div><div class="hljs-line">      <span class="hljs-string">"data"</span>: {
</div><div class="hljs-line">        <span class="hljs-string">"title"</span>: <span class="hljs-string">"新消息"</span>,
</div><div class="hljs-line">        <span class="hljs-string">"message"</span>: <span class="hljs-string">"&lt;h2&gt;新增消息&lt;/h2&gt;&lt;h2&gt;新增消息&lt;/h2&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;"</span>,
</div><div class="hljs-line">        <span class="hljs-string">"create_time"</span>: <span class="hljs-string">"2018-03-21 08:43:56"</span>
</div><div class="hljs-line">      }
</div><div class="hljs-line">    }
</div></code></pre>



<h4 id="10限时商品列表正价商品列表">10.限时商品列表,正价商品列表</h4>

<pre class="prettyprint hljs-dark"><code class="hljs xquery"><div class="hljs-line"> url api/product/getProductList
</div><div class="hljs-line"> 参数
</div><div class="hljs-line"> good_type   <span class="hljs-number">1</span> 正价商品 <span class="hljs-number">2</span> 限时商品   
</div><div class="hljs-line"> top  <span class="hljs-number">1</span> 首页(显示限时商品首页的时候传)
</div><div class="hljs-line"> 返回 
</div><div class="hljs-line">    {
</div><div class="hljs-line">      <span class="hljs-string">"code"</span>: <span class="hljs-number">1</span>,
</div><div class="hljs-line">      <span class="hljs-string">"message"</span>: <span class="hljs-string">"操作成功"</span>,
</div><div class="hljs-line">      <span class="hljs-string">"data"</span>: {
</div><div class="hljs-line">        <span class="hljs-string">"total"</span>: <span class="hljs-string">"1"</span>,
</div><div class="hljs-line">        <span class="hljs-string">"result"</span>: [
</div><div class="hljs-line">          {
</div><div class="hljs-line">            <span class="hljs-string">"id"</span>: <span class="hljs-string">"2"</span>,
</div><div class="hljs-line">            <span class="hljs-string">"title"</span>: <span class="hljs-string">"大闸蟹"</span>,
</div><div class="hljs-line">            <span class="hljs-string">"y_price"</span>: <span class="hljs-string">"300.00"</span>,
</div><div class="hljs-line">            <span class="hljs-string">"price"</span>: <span class="hljs-string">"150.00"</span>,
</div><div class="hljs-line">            <span class="hljs-string">"quantity"</span>: <span class="hljs-string">"200"</span>,
</div><div class="hljs-line">            <span class="hljs-string">"image"</span>: <span class="hljs-string">"/Uploads/Picture/2018-03-17/5aacdf7993da0.jpg"</span>
</div><div class="hljs-line">          }
</div><div class="hljs-line">        ]
</div><div class="hljs-line">      }
</div><div class="hljs-line">    }  
</div></code></pre>



<h4 id="11-商品详情">11.  商品详情</h4>

<pre class="prettyprint hljs-dark"><code class="hljs xquery"><div class="hljs-line">  url  api/product/getProduct
</div><div class="hljs-line">  参数
</div><div class="hljs-line">  id
</div><div class="hljs-line">  返回
</div><div class="hljs-line">  {<span class="hljs-string">"code"</span>:<span class="hljs-number">1</span>,<span class="hljs-string">"message"</span>:<span class="hljs-string">"\u64cd\u4f5c\u6210\u529f"</span>,<span class="hljs-string">"data"</span>:{<span class="hljs-string">"identify_price"</span>:<span class="hljs-number">0</span>,<span class="hljs-string">"id"</span>:<span class="hljs-string">"1"</span>,<span class="hljs-string">"uid"</span>:<span class="hljs-string">"0"</span>,<span class="hljs-string">"shop_id"</span>:<span class="hljs-string">"0"</span>,<span class="hljs-string">"category_id"</span>:<span class="hljs-string">"0"</span>,<span class="hljs-string">"title"</span>:<span class="hljs-string">"\u4e94\u661f"</span>,<span class="hljs-string">"description"</span>:<span class="hljs-string">"
</span></div><div class="hljs-line">\"<span class="hljs-number">5</span>a30e8e52f709.jpg\<span class="hljs-string">"\/&lt;\/p&gt;"</span>,<span class="hljs-string">"price"</span>:<span class="hljs-string">"100.00"</span>,<span class="hljs-string">"quantity"</span>:<span class="hljs-string">"100"</span>,<span class="hljs-string">"movie"</span>:null,<span class="hljs-string">"security_7days"</span>:<span class="hljs-string">"0"</span>,<span class="hljs-string">"security_delivery"</span>:<span class="hljs-string">"0"</span>,<span class="hljs-string">"in_special_panic"</span>:<span class="hljs-string">"0"</span>,<span class="hljs-string">"in_special_gift"</span>:<span class="hljs-string">"0"</span>,<span class="hljs-string">"score"</span>:null,<span class="hljs-string">"images"</span>:[{<span class="hljs-string">"id"</span>:<span class="hljs-string">"52"</span>,<span class="hljs-string">"path"</span>:<span class="hljs-string">"\/Uploads\/Picture\/2018-03-17\/5aac7b2c3a020.jpg"</span>},{<span class="hljs-string">"id"</span>:<span class="hljs-string">"53"</span>,<span class="hljs-string">"path"</span>:<span class="hljs-string">"\/Uploads\/Picture\/2018-03-15\/5aaa272c57fd0.jpg"</span>},{<span class="hljs-string">"id"</span>:<span class="hljs-string">"54"</span>,<span class="hljs-string">"path"</span>:<span class="hljs-string">"\/Uploads\/Picture\/2018-03-17\/5aac8439e6dc0.jpg"</span>}],<span class="hljs-string">"option"</span>:[{<span class="hljs-string">"id"</span>:<span class="hljs-string">"1"</span>,<span class="hljs-string">"title"</span>:<span class="hljs-string">"\u989c\u8272"</span>,<span class="hljs-string">"_child"</span>:[{<span class="hljs-string">"id"</span>:<span class="hljs-string">"2"</span>,<span class="hljs-string">"title"</span>:<span class="hljs-string">"\u767d\u8272"</span>},{<span class="hljs-string">"id"</span>:<span class="hljs-string">"5"</span>,<span class="hljs-string">"title"</span>:<span class="hljs-string">"\u7ea2\u8272"</span>}]}],<span class="hljs-string">"option_price"</span>:[{<span class="hljs-string">"id"</span>:<span class="hljs-string">"17"</span>,<span class="hljs-string">"price"</span>:<span class="hljs-string">"10.00"</span>,<span class="hljs-string">"product_option_id"</span>:<span class="hljs-string">"2"</span>},{<span class="hljs-string">"id"</span>:<span class="hljs-string">"18"</span>,<span class="hljs-string">"price"</span>:<span class="hljs-string">"20.00"</span>,<span class="hljs-string">"product_option_id"</span>:<span class="hljs-string">"5"</span>}]}}
</div></code></pre>



<h4 id="12获取省份列表">12.获取省份列表</h4>

<pre class="prettyprint hljs-dark"><code class="hljs actionscript"><div class="hljs-line"> url  api/<span class="hljs-keyword">public</span>/getProvinces
</div></code></pre>



<h4 id="13-获取对应省份的城市列表">13. 获取对应省份的城市列表</h4>

<pre class="prettyprint hljs-dark"><code class="hljs actionscript"><div class="hljs-line">     url api/<span class="hljs-keyword">public</span>/getCities
</div><div class="hljs-line">     参数
</div><div class="hljs-line">     province_id
</div></code></pre>

<h4 id="14获取对应城市的区县列表">14.获取对应城市的区县列表</h4>

<pre class="prettyprint hljs-dark"><code class="hljs actionscript"><div class="hljs-line">    url   api/<span class="hljs-keyword">public</span>/getAreas
</div><div class="hljs-line">    参数
</div><div class="hljs-line">    city_id
</div></code></pre>



<h4 id="13添加收货地址">13.添加收货地址</h4>

<pre class="prettyprint hljs-dark"><code class="hljs applescript"><div class="hljs-line">    url  api/user/addReceiveAddr
</div><div class="hljs-line">    参数
</div><div class="hljs-line">    token
</div><div class="hljs-line">    mobile   手机号
</div><div class="hljs-line">    realname   姓名
</div><div class="hljs-line">    province_id   省份<span class="hljs-built_in">id</span>
</div><div class="hljs-line">    city_id      城市<span class="hljs-built_in">id</span>
</div><div class="hljs-line">    area_id       区<span class="hljs-built_in">id</span>
</div><div class="hljs-line">    address       详细地址  
</div></code></pre>

<h4 id="14编辑用户收货地址">14.编辑用户收货地址</h4>

<pre class="prettyprint hljs-dark"><code class="hljs applescript"><div class="hljs-line">    url  api/user/editReceiveAddr
</div><div class="hljs-line">    参数
</div><div class="hljs-line">    token 
</div><div class="hljs-line">    <span class="hljs-built_in">id</span>       收货地址<span class="hljs-built_in">id</span>
</div><div class="hljs-line">    mobile   手机号
</div><div class="hljs-line">    realname   姓名
</div><div class="hljs-line">    province_id  省份<span class="hljs-built_in">id</span>
</div><div class="hljs-line">    city_id   城市<span class="hljs-built_in">id</span>
</div><div class="hljs-line">    area_id    区<span class="hljs-built_in">id</span>
</div><div class="hljs-line">    address 详细地址
</div><div class="hljs-line">    is_default  是否设置默认地址，<span class="hljs-number">1</span>是<span class="hljs-number">0</span>否
</div></code></pre>

<h4 id="15-收货地址列表">15. 收货地址列表</h4>

<pre class="prettyprint hljs-dark"><code class="hljs awk"><div class="hljs-line">url api<span class="hljs-regexp">/user/g</span>etReceiveAddrs
</div><div class="hljs-line">参数
</div><div class="hljs-line">token
</div></code></pre>



<h4 id="16获取用户收货地址详情">16.获取用户收货地址详情</h4>

<pre class="prettyprint hljs-dark"><code class="hljs applescript"><div class="hljs-line"> url  api/user/getReceiveAddr
</div><div class="hljs-line"> 参数
</div><div class="hljs-line"> token
</div><div class="hljs-line"> <span class="hljs-built_in">id</span>
</div></code></pre>



<h4 id="17删除收货地址">17.删除收货地址</h4>

<pre class="prettyprint hljs-dark"><code class="hljs applescript"><div class="hljs-line"> url  api/user/delReceiveAddr
</div><div class="hljs-line"> 参数
</div><div class="hljs-line"> token
</div><div class="hljs-line"> <span class="hljs-built_in">id</span>
</div></code></pre>



<h4 id="18提交订单">18.提交订单</h4>

<pre class="prettyprint hljs-dark"><code class="hljs applescript"><div class="hljs-line"> url  api/order/quickSubmitOrder
</div><div class="hljs-line"> 参数
</div><div class="hljs-line"> token
</div><div class="hljs-line"> <span class="hljs-built_in">id</span>    商品<span class="hljs-built_in">id</span>
</div><div class="hljs-line"> quantity   数量
</div><div class="hljs-line"> product_option_id  型号<span class="hljs-built_in">id</span>
</div><div class="hljs-line"> receiver_id  地址<span class="hljs-built_in">id</span>  
</div><div class="hljs-line">返回
</div><div class="hljs-line">{
</div><div class="hljs-line">  <span class="hljs-string">"code"</span>: <span class="hljs-number">-2</span>,
</div><div class="hljs-line">  <span class="hljs-string">"message"</span>: <span class="hljs-string">"元宝不足"</span>
</div><div class="hljs-line">}
</div><div class="hljs-line">{
</div><div class="hljs-line">  <span class="hljs-string">"code"</span>: <span class="hljs-number">1</span>,
</div><div class="hljs-line">  <span class="hljs-string">"message"</span>: <span class="hljs-string">"兑换成功!"</span>
</div><div class="hljs-line">}
</div></code></pre>



<h4 id="19订单列表">19.订单列表</h4>

<pre class="prettyprint hljs-dark"><code class="hljs xquery"><div class="hljs-line">  url api/<span class="hljs-keyword">order</span>/getMyOrders
</div><div class="hljs-line">  参数
</div><div class="hljs-line">  token
</div><div class="hljs-line">  返回
</div><div class="hljs-line">  {<span class="hljs-string">"code"</span>:<span class="hljs-number">1</span>,<span class="hljs-string">"message"</span>:<span class="hljs-string">"\u64cd\u4f5c\u6210\u529f"</span>,<span class="hljs-string">"data"</span>:{<span class="hljs-string">"result"</span>:[{<span class="hljs-string">"id"</span>:<span class="hljs-string">"16"</span>,<span class="hljs-string">"order_no"</span>:<span class="hljs-string">"2018032280344"</span>,<span class="hljs-string">"uid"</span>:<span class="hljs-string">"149"</span>,<span class="hljs-string">"status"</span>:<span class="hljs-string">"1"</span>,<span class="hljs-string">"consignee"</span>:<span class="hljs-string">"\u4e07\u79d1\u91cc"</span>,<span class="hljs-string">"province_id"</span>:<span class="hljs-string">"110000"</span>,<span class="hljs-string">"city_id"</span>:<span class="hljs-string">"110100"</span>,<span class="hljs-string">"area_id"</span>:<span class="hljs-string">"110101"</span>,<span class="hljs-string">"address"</span>:<span class="hljs-string">"\u4e1c\u57ce\u533a111"</span>,<span class="hljs-string">"mobile"</span>:<span class="hljs-string">"13639447983"</span>,<span class="hljs-string">"price"</span>:<span class="hljs-string">"40.00"</span>,<span class="hljs-string">"comment"</span>:<span class="hljs-string">""</span>,<span class="hljs-string">"create_time"</span>:<span class="hljs-string">"2018-03-22 14:59:21"</span>,<span class="hljs-string">"update_time"</span>:<span class="hljs-string">"0"</span>,<span class="hljs-string">"order_status"</span>:<span class="hljs-string">"1"</span>,<span class="hljs-string">"shipping_status"</span>:<span class="hljs-string">"2"</span>,<span class="hljs-string">"review_status"</span>:<span class="hljs-string">"0"</span>,<span class="hljs-string">"shipping_time"</span>:<span class="hljs-string">"0"</span>,<span class="hljs-string">"confirm_time"</span>:<span class="hljs-string">"0"</span>,<span class="hljs-string">"complate_time"</span>:<span class="hljs-string">"0"</span>,<span class="hljs-string">"pay_time"</span>:<span class="hljs-string">"1521701961"</span>,<span class="hljs-string">"pay_status"</span>:<span class="hljs-string">"1"</span>,<span class="hljs-string">"is_score_product"</span>:<span class="hljs-string">"0"</span>,<span class="hljs-string">"score_num"</span>:<span class="hljs-string">"0"</span>,<span class="hljs-string">"pay_style"</span>:<span class="hljs-string">"0"</span>,<span class="hljs-string">"order_type"</span>:<span class="hljs-string">"1"</span>,<span class="hljs-string">"status_text"</span>:<span class="hljs-string">"\u5f85\u6536\u8d27"</span>,<span class="hljs-string">"area"</span>:<span class="hljs-string">"\u5317\u4eac\u5e02\u8f96\u533a\u4e1c\u57ce\u533a\u4e1c\u57ce\u533a111"</span>,<span class="hljs-string">"products"</span>:[{<span class="hljs-string">"id"</span>:<span class="hljs-string">"16"</span>,<span class="hljs-string">"order_id"</span>:<span class="hljs-string">"16"</span>,<span class="hljs-string">"product_id"</span>:<span class="hljs-string">"1"</span>,<span class="hljs-string">"product_title"</span>:<span class="hljs-string">"\u4e94\u661f"</span>,<span class="hljs-string">"product_attr"</span>:<span class="hljs-string">"\u989c\u8272:\u7ea2\u8272"</span>,<span class="hljs-string">"identify_price"</span>:<span class="hljs-string">"0.00"</span>,<span class="hljs-string">"price"</span>:<span class="hljs-string">"20.00"</span>,<span class="hljs-string">"quantity"</span>:<span class="hljs-string">"2"</span>,<span class="hljs-string">"create_time"</span>:<span class="hljs-string">"0"</span>,<span class="hljs-string">"update_time"</span>:<span class="hljs-string">"0"</span>,<span class="hljs-string">"return_status"</span>:<span class="hljs-string">"0"</span>,<span class="hljs-string">"option_ids"</span>:<span class="hljs-string">"5"</span>,<span class="hljs-string">"shop_id"</span>:<span class="hljs-string">"0"</span>,<span class="hljs-string">"is_comment"</span>:<span class="hljs-string">"0"</span>,<span class="hljs-string">"unit_price"</span>:<span class="hljs-string">"20"</span>,<span class="hljs-string">"shipping_status"</span>:<span class="hljs-string">"0"</span>,<span class="hljs-string">"score"</span>:<span class="hljs-string">"0"</span>,<span class="hljs-string">"image_path"</span>:<span class="hljs-string">"\/Uploads\/Picture\/2018-03-17\/5aac7b2c3a020.jpg"</span>}]}],<span class="hljs-string">"total"</span>:<span class="hljs-number">1</span>}}
</div></code></pre>



<h4 id="20获取七牛token">20.获取七牛token</h4>

<pre class="prettyprint hljs-dark"><code class="hljs xquery"><div class="hljs-line">url api/file/getQNtoken
</div><div class="hljs-line">返回
</div><div class="hljs-line">{
</div><div class="hljs-line">  <span class="hljs-string">"code"</span>: <span class="hljs-number">1</span>,
</div><div class="hljs-line">  <span class="hljs-string">"message"</span>: <span class="hljs-string">"操作成功"</span>,
</div><div class="hljs-line">  <span class="hljs-string">"data"</span>: {
</div><div class="hljs-line">    <span class="hljs-string">"token"</span>: <span class="hljs-string">"::eyJzY29wZSI6bnVsbCwiZGVhZGxpbmUiOjE1MjE3MTU0OTl9"</span>,
</div><div class="hljs-line">    <span class="hljs-string">"url"</span>: <span class="hljs-string">"http://huigo.jzbwlkj.com"</span>
</div><div class="hljs-line">  }
</div><div class="hljs-line">}
</div></code></pre>



<h4 id="21更新头像">21.更新头像</h4>

<pre class="prettyprint hljs-dark"><code class="hljs qml"><div class="hljs-line"><span class="hljs-built_in">url</span> api/user/modifyAvatar
</div><div class="hljs-line">参数
</div><div class="hljs-line">token
</div><div class="hljs-line"><span class="hljs-built_in">url</span>
</div><div class="hljs-line">返回
</div><div class="hljs-line">{
</div><div class="hljs-line">  <span class="hljs-string">"code"</span>: <span class="hljs-number">1</span>,
</div><div class="hljs-line">  <span class="hljs-string">"message"</span>: <span class="hljs-string">"操作成功"</span>
</div><div class="hljs-line">}
</div></code></pre></div></body></html>